// import request from '@/utils/request'
import request from '@/utils/axios'

export function login(data) {
  return request('/user/login', {
    method: 'POST',
    body: { ...data }
  })
}

export function getInfo(token) {
  return request({
    url: '/vue-admin-template/user/info',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request('/user/quit', {
    method: 'POST'
  })
}
